﻿using PMP.Core.SignalR;

namespace PMP.Application.Apis;

/// <summary>
/// 测试接口
/// </summary>
public class TestApi : IDynamicApiController
{
    private readonly MsgHub _msgHub;
    public TestApi(MsgHub msgHub)
    {
        _msgHub = msgHub;
    }
    
    /// <summary>
    /// SignalR测试
    /// </summary>
    public async Task SignalRTest()
    {
        await _msgHub.SendProjectNotify(0, 1, "测试SignalR");
    }
}